package 数组;

/**
 * @author ycc
 * @date 2024/7/3
 */
public class Main {

    public static void main(String[] args) {
        int[] arr = new int[3];
        arr[0] = 1;
        arr[1] = 2;
        arr[2] = 3;
        System.out.println(arr[0]);

        int[] arr2 = {1, 2, 3};

        int[] arr3 = new int[]{1, 2, 3};

        System.out.println(arr2);
        System.out.println(arr3.toString());

    }
}
